#ifndef SWITCH_H
#define SWITCH_H

#include <QWidget>
#include <QLabel>
#include "global_def.h"

class Switch : public QWidget
{
    Q_OBJECT
public:
    explicit Switch(QWidget *parent = nullptr);
    virtual void InitSwtichName(QString name)=0;
    virtual void InitSwitchPorts(QStringList &portnamelist)=0;
    virtual void updatePortStat(int port_index,int port_stat,int duplex_stat)=0;
    virtual void updatePortsName(QStringList &portnamelist)=0;
    virtual int portCount()=0;
signals:
};

#endif // SWITCH_H
